import org.ia.efactura.Encoder;

public class TestMain {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		try{
			String cadenaOriginal = "||0001|2001-12-31T12:00:00|1|AATE3807299F1|emisor_nombre|dom_calle|dom_muni|dom_edo|dom_pais|45678|receptor_nombre|dom_calle|dom_pais|2.0|descrip|14.00|28.00||";
			
			Encoder mygen = new Encoder();
			//mygen.readCert();
			String sd = mygen.getSelloDigital(cadenaOriginal, "a0123456789", "C:\\Documents and Settings\\mtma\\MyDocuments\\Downloads\\info_sat_factura\\aaa010101aaa_CSD_01.key");
			System.out.println(sd);
			
			String cp = mygen.getCertificado("C:\\Documents and Settings\\mtma\\MyDocuments\\Downloads\\info_sat_factura\\aaa010101aaa_CSD_01.cer");
			System.out.println(cp);
			
			/*
			TempConvertSoap tmp = new TempConvertLocator().getTempConvertSoap();
			String cel = tmp.fahrenheitToCelsius("126");
			System.out.println("celsius: " + cel);
			*/
			
		}catch(Exception e){
			e.printStackTrace();
		}
		

	}

}
